<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>学院信息</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
			<link rel="stylesheet" type="text/css" href="styles.css">
		-->
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui/css/H-ui.min.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui.admin/css/H-ui.admin.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/lib/Hui-iconfont/1.0.7/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/lib/icheck/icheck.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui.admin/skin/default/skin.css" id="skin" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui.admin/css/style.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>styles/page.css" />
		<script type="text/javascript" src="<%=basePath %>scripts/jquery-1.9.1.js"></script> 
		<script type="text/javascript" src="<%=basePath %>scripts/lib/layer/2.1/layer.js"></script>
		<script type="text/javascript" src="<%=basePath %>scripts/static/h-ui/js/H-ui.js"></script> 
		<script type="text/javascript" src="<%=basePath %>scripts/static/h-ui.admin/js/H-ui.admin.js"></script>
		<script type="text/javascript" src="<%=basePath %>scripts/jquery.page.js"></script>
		<script type="text/javascript" src="<%=basePath %>scripts/jquery.dataTables.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$("#myTable").DataTable({
		            "sPaginationType" : "full_numbers",
		            "oLanguage" : {
		                "sLengthMenu": "每页显示 _MENU_ 条记录",
		                "sZeroRecords": "抱歉， 没有找到",
		                "sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
		                "sInfoEmpty": "没有数据",
		                "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
		                "sZeroRecords": "没有检索到数据",
		                 "sSearch": "名称:",
		                "oPaginate": {
		                "sFirst": "首页",
		                "sPrevious": "前一页",
		                "sNext": "后一页",
		                "sLast": "尾页"
		                }
		                     
		            }
		        });
			});
		</script>
	</head>
	<body>
		<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 
		首页 <span class="c-gray en">&gt;</span>
		基本信息 <span class="c-gray en">&gt;</span>
		我的成绩<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="r">共有数据：<strong>${pageModel.totalrows }</strong> 门课程</span> 
	</div>
	<div class="mt-20">
		<table id="myTable" class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th colspan="8">我的成绩单</th>
				</tr>
				<tr class="text-c">
					<th width="25">序号</th>
					<th width="100">课程名</th>
					<th width="100">课程学分</th>
					<th width="100">平时成绩</th>
					<th width="100">考试成绩</th>
					<th width="100">综合成绩</th>
				</tr>
			</thead>
			<c:choose>
			<c:when test="${pageModel.totalrows==0 }">
				<tbody>
					<tr class="text-c">
						<td colspan="8">没有数据</td>
					</tr>
				</tbody>
			</c:when>
			<c:otherwise>
				<tbody id="examInfo">
					<c:forEach items="${pageModel.list }" var="score" varStatus="L">
						<tr class="text-c">
							<td>${L.index+1 }</td>
							<td>${score.courceName }</td>
							<td>${score.courceScore }</td>
							<td>${score.commonScore }</td>
							<td>${score.examScore }</td>
							<td>${score.totalScore }</td>
						</tr>
					</c:forEach>
				</tbody>
			</c:otherwise>
			</c:choose>
		</table>
	</div>
</div>
	</body>
</html>